
<!DOCTYPE html>
<html>

<head>
   
    
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!--360浏览器优先以webkit内核解析-->


<title>万用联络单</title>

<link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
<link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="__STATIC__/layout/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
<link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
<link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
<link href="__STATIC__/layout/css/channel.css?v=4.1.0" rel="stylesheet">
<!-- Sweet Alert -->
<link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
 <link href="__STATIC__/layout/css/plugins/summernote/summernote.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/summernote/summernote-bs3.css" rel="stylesheet">


    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <style>

        .note-editable {
            height: 150px
        }

    </style>

</head>

<body class="white-bg" style="padding: 3px;font-size: 13px">
    <div class="page-heade">
       <h2 class="title_color text-center">万用联络单</h2>
    </div>
    <form action="" class="form-inline" id="form1">
        <table class="table table-bordered bud_hei text-center">
            <tr>
                <td style="width: 140px;">主题 <span class="colorRed">*</span></td>
                <td class="text-left" colspan="3">
                    <input type="text" name="" class="form-control" style="width: 60%">
                </td>
            </tr>
            <tr>
                <td>万用联络单编号</td>
                <td class="text-left"></td>
                <td style="width: 140px;">创建时间</td>
                <td class="text-left" id="applytime"></td>
            </tr>
            <tr>
                <td>联络单发起人</td>
                <td class="text-left">
                   <a href="javascript:;">蔡启豪</a>
                </td>
                <td>发起人邮箱信息</td>
                <td></td>
            </tr>
            <tr>
                <td>联络单类型</td>
                <td class="text-left">
                    <select class="form-control select">
                        <option value="0">重要且紧急</option>
                        <option value="1">重要但不紧急</option>
                        <option value="2">不重要但紧急</option>
                        <option value="2">不重要不紧急</option>
                    </select>
                </td>
                <td>联络单状态</td>
                <td class="text-left">草稿</td>
            </tr>
            <tr>
                <td>要求回复时间 <span class="colorRed">*</span></td>
                <td class="text-left font-bold">于<input type="text" name="" class="form-control layer-date" id="reviewTime">之前</td>
                <td>加密情况</td>
                <td class="text-left">
                     <label class="radio-inline font-bold" for="jiami1">
                        <input type="radio" checked name="jiami" class="form-control" id="jiami1">密件
                    </label>
                     <label class="radio-inline font-bold" for="jiami2">
                        <input type="radio" name="jiami" class="form-control" id="jiami2">普件
                    </label>
                </td>
            </tr>
            <tr>
                <td>常用模板</td>
                <td colspan="3" class="text-left">
                    <select class="form-control select">
                        <option value="0">请选择</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>我的模板</td>
                <td colspan="3" class="text-left">
                    <select class="form-control select">
                        <option value="0">请选择</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>模板搜索</td>
                <td colspan="3" class="text-left">
                    <select class="form-control select">
                        <option value="0">请选择</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>接收部门(接受顺序为由左至右) <span class="colorRed">*</span></td>
                <td colspan="3" class="text-left">
                <div class="form-group">
                     <div class="input-group">
                            <input id="area_id" type="text" placeholder="请输入关键字或空格查询"
                                   class="form-control" value="" style="min-width: 300px;width: 300px">
                            <div class="input-group-btn">
                                <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                </ul>
                            </div>
                        </div>
                    </div>
                    <a href="javascript:;" id="select_area" class="btn btn-primary btn-sm">选择</a>
                </div><br>
                <p>温馨提醒：如果接收部门有2个或者2个以上，建议您手填联想出部门(部门的名字请参照"选择"里的部门名称)。接收部门中不能有申请人所在部门。</p>
                </td>
            </tr>
            <tr>
                <td></td>
                <td colspan="5"></td>
            </tr>
            <tr>
                <td colspan="4" class="font-bold">联络单内容如下</td>
            </tr>
            <tr>
                <td colspan="4" class="text-left">
                     <div class="ibox float-e-margins" style="margin-bottom: 0">
                        <div class="ibox-content no-padding">

                            <div class="summernote" id="info">
                                                            </div>

                        </div>
                    </div>
                </td>
            </tr>
            <tr>
             <td colspan="4" class="text-left">温馨提醒：本编辑器不支持复杂表单提交，复杂表单请以附件形式提交</td>
            </tr>
            <tr>
                <td>审批完后抄送至个人</td>
                <td class="text-left" colspan="3">
                    <div class="form-group">
                     <div class="input-group">
                            <input id="area_id1" type="text" placeholder="请输入关键字或空格查询"
                                   class="form-control" value="" style="min-width: 300px;width: 300px">
                            <div class="input-group-btn">
                                <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                </ul>
                            </div>
                        </div>
                    </div>
                    <a href="javascript:;" id="select_area" class="btn btn-primary btn-sm">选择</a>
                </div> 
                </td>
            </tr>
            <tr>
                <td></td>
                <td class="text-left" colspan="3"></td>
            </tr>
              <tr>
                <td>审批完后抄送至部门</td>
                <td class="text-left" colspan="3">
                    <div class="form-group">
                     <div class="input-group">
                            <input id="area_id2" type="text" placeholder="请输入关键字或空格查询"
                                   class="form-control" value="" style="min-width: 300px;width: 300px">
                            <div class="input-group-btn">
                                <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                </ul>
                            </div>
                        </div>
                    </div>
                    <a href="javascript:;" id="select_area" class="btn btn-primary btn-sm">选择</a>
                </div> 
                </td>
            </tr>
             <tr>
                <td></td>
                <td class="text-left" colspan="3"></td>
            </tr>
             <tr>
                <td>拆分至领导审批(审批顺序为由左至右)</td>
                <td class="text-left" colspan="3">
                    <div class="form-group">
                     <div class="input-group">
                            <input id="area_id3" type="text" placeholder="请输入关键字或空格查询"
                                   class="form-control" value="" style="min-width: 300px;width: 300px">
                            <div class="input-group-btn">
                                <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                </ul>
                            </div>
                        </div>
                    </div>
                    <a href="javascript:;" id="select_area" class="btn btn-primary btn-sm">选择</a>
                </div> 
                </td>
            </tr>
             <tr>
                <td></td>
                <td class="text-left" colspan="3"></td>
            </tr>
            <tr>
                <td>是否需要进行复核</td>
                <td colspan="3" class="text-left">
                       <label class="radio-inline font-bold" for="is_fuhe">
                        <input type="radio" checked name="fuhe" class="form-control" id="is_fuhe">是
                    </label>
                     <label class="radio-inline font-bold" for="no_fuhe">
                        <input type="radio" name="fuhe" class="form-control" id="no_fuhe">否
                    </label>
                </td>
            </tr>
        </table>
        <div class="form-group white-bg" style="margin:20px 10px 20px 20px;">
            <div id="uploader" class="wu-example">
                <!--用来存放文件信息-->
                <div id="thelist" class="uploader-list">
                                   </div>
                <div class="btns">
                    <div id="picker">选择文件</div>
                    <button id="ctlBtn" class="btn btn-default">开始上传</button>
                </div>
                <input type="hidden" name="attach" id="attach"  >
            </div>
            <span>注：最多上传15个文件，每个文件小于50M,支持格式：</span><br>jpg,bnp,gif,png,jpeg,tif,raw,doc,docx,xls,xlsx,ppt,pptx,txt,pdf,rar,zip,mp4,avi,rmvb,rm,mid,3gp,AVI,3GP,,mpg,mp3,wma,wav
        </div>

        <div class="padding-10 text-center"><button class="btn btn-primary" type="submit">提交</button><span class="lr_5"></span><button class="btn btn-success" type="button">提交并保存为模板</button><span class="lr_5"></span><button class="btn btn-warning" type="reset">重置</button></div>
    </form>
  
    
<!-- 全局js -->
<script src="__STATIC__/layout/js/jquery.min.js"></script>
<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
<!-- Sweet alert -->
<script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
<script src="__STATIC__/layout/js/plugins/suggest/bootstrap-suggest.min.js"></script>
<script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
<script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
<script>
    $(function () {
        $('body').on('click','input[type=text]',function () {
            this.select()
        })
    })
</script>
   <script src="__STATIC__/layout/js/plugins/summernote/summernote.min.js"></script>
<script src="__STATIC__/layout/js/plugins/summernote/summernote-zh-CN.js"></script>

<script>
     getNowFormatDate();
    $("#applytime").html(getNowFormatDate())
   function getNowFormatDate() {
    var date = new Date();
    var seperator1 = "-";
    var seperator2 = ":";
    var month = date.getMonth() + 1;
    var strDate = date.getDate();
    if (month >= 1 && month <= 9) {
        month = "0" + month;
    }
    if (strDate >= 0 && strDate <= 9) {
        strDate = "0" + strDate;
    }
    var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
            + " " + date.getHours() + seperator2 + date.getMinutes()
            + seperator2 + date.getSeconds();
    return currentdate;
}
laydate({
    elem:"#reviewTime",
    min: laydate.now(), //设定最小日期为当前日期
    max: '2099-06-16 23:59:59', //最大日期
    event:"focus"
})
   
    $(document).ready(function () {
        $('.summernote').summernote({
            lang: 'zh-CN'
        });
    });

  
  var jieshou = $("#area_id");
 sousuo(jieshou);
       function sousuo(id){
            id.bsSuggest({
            allowNoKeyword: false, //是否允许无关键字时请求数据
            multiWord: true, //以分隔符号分割的多关键字支持
            separator: ",", //多关键字支持时的分隔符，默认为空格
            getDataMethod: "url", //获取数据的方式，总是从 URL 获取
            url: 'http://unionsug.baidu.com/su?p=3&t=' + (new Date()).getTime() + '&wd=',
            /*优先从url ajax 请求 json 帮助数据，注意最后一个参数为关键字请求参数*/
            jsonp: 'cb',
            /*如果从 url 获取数据，并且需要跨域，则该参数必须设置*/
            processData: function (json) { // url 获取数据时，对数据的处理，作为 getData 的回调函数
                var i, len, data = {
                    value: []
                };
                if (!json || !json.s || json.s.length === 0) {
                    return false;
                }

                // console.log(json);
                len = json.s.length;

                jsonStr = "{'value':[";
                for (i = 0; i < len; i++) {
                    data.value.push({
                        word: json.s[i]
                    });
                }
                data.defaults = 'baidu';

                //字符串转化为 js 对象
                return data;
            }
        });

          }
 $('#reset').on('click',function () {
            $("#form1 input").each(function(){
                $(this).val('');
            });
            $("#form1 select").each(function(){
                $(this).val('');
            });
            $('#form1').submit()
            return false
        })
</script>
</body>

</html>